<link href="/stylesheets/tabheader.css" rel="stylesheet" type="text/css" />
<table width="100%" class="noborder_padding">
  <tr>
    <td width="200px" valign="top">
      <%=render :partial=>"sidemenu"%>
    </td>
    <td valign="top" style="padding-left: 10px;">
      <div align="right" valign="middle" style="padding:2px;">
        <form action="/project/search" method="post" style="padding:0px; margin:0px; display: inline;">
          <input type="text" name="search" style="width:300px"/> <input type="submit" value="search"/> &nbsp;&nbsp;&nbsp;&nbsp;
        </form>
        <form action="/project/gen_blank" method="post" style="padding:0px; margin:0px; display: inline;">
          <input type="submit" value="Create New Project"/>
        </form>
        <%if session[:selected_project_id]%>
        <form action="/project/save_as" method="post" style="padding:0px; margin:0px; display: inline;">
          <input type="submit" value="Save As New Project"/>
        </form>
        <%end%>
      </div>
      <h3><font color="#804040">Save As New Project</font><%if @word%><font color="red"><i> &nbsp;&nbsp;&nbsp; "<%=@word%>"</i></font><%end%></h3>
      <form action="/project/do_save_as" method="post" style="padding:0px; margin:0px; display: inline;">
      <table class="basic_table" width="50%">
        <tr>
          <td style="padding-left: 10px;">From :</td>
          <%p_name = Project.find(session[:selected_project_id]).name%>
          <td><%=p_name%></td>
        </tr>
        <tr>
          <td style="padding-left: 10px;">Save As :</td>
          <td><input type="text" name="name" value="<%=p_name%>_copy"/></td>
        </tr>
        <tr>
          <td style="padding-left: 10px;">Copy :</td>
          <td>
            <input type="checkbox" name="chk_general" value="y" checked/> General<br/>
            <input type="checkbox" name="chk_data" value="y" checked/> Data, Model, Test<br/>
            <input type="checkbox" name="chk_result" value="y" checked/> Results<br/>
            <input type="checkbox" name="chk_paper" value="y" checked/> Paper
          </td>
        </tr>
        <tr>
          <td></td>
          <td><input type="submit" value="Save"/></td>
        </tr>
      </table>
      </form>
    </td>
  </tr>
</table>